FROM openjdk:8
RUN echo "Asia/Shanghai" > /etc/timezone && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

ADD ./ycsm-server.jar /opt
WORKDIR /opt
#端口
EXPOSE 8080

#设置启动命令
ENTRYPOINT ["java","-jar", "ycsm-server.jar"]
